
export default {
	namespaced:true,
	state:()=>({
		cate_list:{}
	}),
	mutations:{
		SET_CATE_LIST(state,data){
			state.cate_list = data || []
		}
	},
	actions:{
		async GetCateList({commit}){
			const {
				data: res
			} = await uni.$http.get('/api/public/v1/home/catedata')
			commit('SET_CATE_LIST',res.message)
		}
	}
}